/**
 *  仓库入口
 *    1. 用于创建仓库
 *    2. 配置项目中间件
 *    3. 配置调试工具
 */
import { applyMiddleware, createStore } from 'redux'
import { composeWithDevTools } from 'redux-devtools-extension'
import thunk from 'redux-thunk'
import rootReducer from './reducers'

const store = createStore(rootReducer, composeWithDevTools(applyMiddleware(thunk)))

export default store
